package com.yj_app.qualitytest.adapter;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yj_app.qualitytest.R;
import com.yj_app.qualitytest.info.HdInfo;

import java.util.List;

public class HDadapter extends BaseQuickAdapter<HdInfo, BaseViewHolder> {
    public HDadapter(int layoutResId, @Nullable List<HdInfo> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, HdInfo item) {

        helper
                .setText(R.id.xm_name,item.getItemname())
                .setText(R.id.cj_name,item.getCjname())
                .setText(R.id.line_name,item.getScxname())
                .setText(R.id.team_name,item.getGcode())
                .setText(R.id.zr_name,item.getNickname())
                .setText(R.id.k_sorce,item.getScore());
    }
}
